//Accepted
#include <cstdio>
int i, n, t, sum, a[100001], b[100001];

int main(){
	//freopen("in.txt","r",stdin);//freopen("out.txt","w",stdout);
	while(scanf("%d", &n)&&n){
		sum=0;
		for(i=1;i<=n;++i){
			scanf("%d", &t);
			a[t]=i;
			b[i]=t;
		}
		for(i=1;i<=n;++i){
			if(b[i]!=i){
				//printf("%d - %d\n",b[i], a[i] );
				b[a[i]]= b[i];
				a[b[i]]= a[i];
				a[i]=i;
				b[i]=i;
				
				++sum;
			}
		}
		if(sum&1)printf("Marcelo\n");
		else printf("Carlos\n");
	}
}
